import i18n from '@/lang'
export const richShowTbColumns = [
  {
    key: 'updateLevel',
    title: i18n.t('updateLevel'),
    scopedSlots: { customRender: 'updateLevel' },
    width: 200
  },
  {
    title: i18n.t('startTime'),
    dataIndex: 'acceptTime',
    key: 'startTime',
    scopedSlots: { customRender: 'startTime' },
    width: 250
  },
  {
    title: i18n.t('endTime'),
    key: 'endTime',
    dataIndex: 'createTime',
    scopedSlots: { customRender: 'endTime' },
    width: 250
  },
  {
    title: i18n.t('updateState'),
    dataIndex: 'ecuStatus',
    key: 'action',
    scopedSlots: { customRender: 'updateState' },
    width: 300
  }
]

export const tableShowTbColumns = [
  {
    dataIndex: 'softwareName',
    key: 'applicationName',
    title: i18n.t('applicationName'),
    scopedSlots: { customRender: 'applicationName' },
    width: 200
  },
  {
    title: i18n.t('packageNames'),
    dataIndex: 'softwareDid',
    key: 'packageNames',
    scopedSlots: { customRender: 'packageNames' },
    width: 200
  },
  {
    title: i18n.t('sjysbb'),
    key: 'sjysbb',
    dataIndex: 'sourceVersionName',
    scopedSlots: { customRender: 'sjysbb' },
    width: 150
  },
  {
    title: i18n.t('sjmbbb'),
    key: 'sjmbbb',
    dataIndex: 'targetVersionName',
    scopedSlots: { customRender: 'sjmbbb' },
    width: 150
  },
  {
    title: i18n.t('updateState'),
    key: 'updateState',
    dataIndex: 'status',
    scopedSlots: { customRender: 'updateState' },
    width: 150,
    special: true
  },
  {
    title: i18n.t('updateDuration'),
    key: 'updateDuration',
    scopedSlots: { customRender: 'updateDuration' },
    width: 150,
    special: true
  }
]
